package name.fowler.refactoring.simplestore;

import javax.persistence.Entity;

import name.fowler.refactoring.simplestore.Movie;

@Entity
public class Rental extends BaseEntity {
	
	private int m_DaysRented;
	private Movie m_Movie;
	
	public Rental() {}
	
	public Rental(Movie movie, int daysRented)
	{
		m_Movie = movie;
		m_DaysRented = daysRented;
	}

	public Movie getMovie() {
		return m_Movie;
	}
	
	public int getDaysRented() {
		return m_DaysRented;
	}

}
